package net.huashitong.Indicators.dao;

import com.sirdc.modules.core.dao.CrudDao;
import com.sirdc.modules.core.dao.GenericQuery;
import com.sirdc.modules.core.dao.StringDao;
import com.sirdc.modules.sys.dao.SysScheduleJobDao;
import com.sirdc.modules.sys.entity.SysScheduleJob;
import com.sirdc.modules.sys.filter.SysScheduleJobFilter;
import net.huashitong.Indicators.dto.StudentDTO;
import org.hibernate.SQLQuery;
import org.hibernate.transform.Transformers;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ScheduleJobDao extends StringDao<SysScheduleJob> {



    public List<SysScheduleJob> queryJobs(SysScheduleJobFilter filter) {
        GenericQuery query = createQuery("obj");
        query.append(" and obj.jobName =:jobName").setParam("jobName",filter.getJobName());

        return query.listResult(filter);
    }
}
